package com.cowain.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.PmsOrderInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  
 *  * @author 冬暖
 *  * @projectName pms-monitor
 *  * @title     PmsOrderInfoDao   
 *  * @package    com.cowain.monitor.dao  
 *  * @description    PMS销售订单       
 *  * @date   2020/7/27 16:16  
 *  * @version V1.0.0
 *  
 */
@Mapper
public interface PmsOrderInfoDao extends BaseMapper<PmsOrderInfoEntity> {
    /**
     * 批量添加
     * @param infoList PMS销售订单数据
     */
    void insertList(List<PmsOrderInfoEntity> infoList);
    /**
     * 查询是否存在项目id
     * @param id 项目id
     * @param orderId
     * @return 项目id
     */
    Long findPmsOrderInfo(@Param("id") Long id, @Param("orderId") Long orderId);

    /**
     * 修改订单状态
     * @param infoEntityList 订单
     */
    void updateInfoList(List<PmsOrderInfoEntity> infoEntityList);
}
